package com.ruoyi.system.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 商品对象 commodity
 * 
 * @author ruoyi
 * @date 2024-03-10
 */
public class CommodityVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 卖家 */
    @Excel(name = "卖家")
    private Long sellerId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 简介 */
    @Excel(name = "简介")
    private String introduce;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 图片 */
    @Excel(name = "图片")
    private String pictures;

    /** 库存 */
    @Excel(name = "库存")
    private Long inventory;

    /** 发货地 */
    @Excel(name = "发货地")
    private String placeOfDelivery;

    private String nickName;
    private String phonenumber;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSellerId(Long sellerId) 
    {
        this.sellerId = sellerId;
    }

    public Long getSellerId() 
    {
        return sellerId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }
    @NotBlank(message = "标题不能为空")
    public String getTitle() 
    {
        return title;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }
    public BigDecimal getPrice()
    {
        return price;
    }
    public void setPictures(String pictures) 
    {
        this.pictures = pictures;
    }

    public String getPictures() 
    {
        return pictures;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }
    public Long getInventory()
    {
        return inventory;
    }
    public void setPlaceOfDelivery(String placeOfDelivery) 
    {
        this.placeOfDelivery = placeOfDelivery;
    }
    @NotBlank(message = "发货地不能为空")
    public String getPlaceOfDelivery() 
    {
        return placeOfDelivery;
    }

    @Override
    public String toString() {
        return "CommodityVo{" +
                "id=" + id +
                ", sellerId=" + sellerId +
                ", title='" + title + '\'' +
                ", introduce='" + introduce + '\'' +
                ", content='" + content + '\'' +
                ", price=" + price +
                ", pictures='" + pictures + '\'' +
                ", inventory=" + inventory +
                ", placeOfDelivery='" + placeOfDelivery + '\'' +
                ", nickName='" + nickName + '\'' +
                ", phonenumber='" + phonenumber + '\'' +
                '}';
    }
}
